var mysql=require('../../mysql.js');
var util=require('../../utils.js');
var config=require('../../config.js');
var Q = require('q');
var commonCor = require('./commonController.js');

// sql 查询语句
module.exports = function(app){

/*---------------------------------------商品列表------------------------------------------------*/
	
	// 获得品牌 | 分类信息
	app.all('/cms/api/common/getBrandsCategorys',((req, res)=>{
		Q.all([commonCor.brands(),commonCor.categorys()]).then(function(data){
			res.send(util.isScuessCall({
				data:data,
			}));
		});
	}));

	/*上传图片接口*/
	app.all('/cms/api/common/uploadPictures',((req, res)=>{
		console.log(req.body);

	}));


	
	

};


	
